package com.igeekhome.mapper;

import com.igeekhome.pojo.BaseDict;
import com.igeekhome.pojo.BaseDictExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseDictMapper {
    int countByExample(BaseDictExample example);

    int deleteByExample(BaseDictExample example);

    int deleteByPrimaryKey(Integer dictId);

    int insert(BaseDict record);

    int insertSelective(BaseDict record);

    List<BaseDict> selectByExample(BaseDictExample example);

    BaseDict selectByPrimaryKey(Integer dictId);

    int updateByExampleSelective(@Param("record") BaseDict record, @Param("example") BaseDictExample example);

    int updateByExample(@Param("record") BaseDict record, @Param("example") BaseDictExample example);

    int updateByPrimaryKeySelective(BaseDict record);

    int updateByPrimaryKey(BaseDict record);

    /**
     * 字典表的批量删除
     * @param idStr id字符串
     * @return int 操作行数
     */
    int deleteByIdStr(String idStr);
}